package com.example.childcheck;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button httpbutton=(Button) this.findViewById(R.id.button_http);
        httpbutton.setOnClickListener(new Httpshow());
        Button mapbutton=(Button) this.findViewById(R.id.button_map);
        mapbutton.setOnClickListener(new Mapshow());
    }
    private class Httpshow implements View.OnClickListener {
        @Override
        public void onClick(View v){
            Intent intent=new Intent(MainActivity.this,HttpActivity.class);
            startActivity(intent);
        }
    }
    private class Mapshow implements View.OnClickListener {
        @Override
        public void onClick(View v){
            Intent intent=new Intent(MainActivity.this,Map_find_Activity.class);
            startActivity(intent);
        }
    }
}